import 'package:honeypotflutter/net/public_http.dart';
import 'package:honeypotflutter/publicBussine/view/bussine_modal.dart';
import 'package:honeypotflutter/public/public_total.dart';

class SettingApi {
  /*
  * 意见反馈
  * */
  static Future<bool> suggest(String clientType, String content) async {
    try {
      Map param = {"clientType": clientType, "content": content};
      await MGHttp.post(
        "api/services/app/FeedBack/Submit",
        params: param,
        progress: "提交中...",
      );
      HLTotal.total("提交成功,感谢您的反馈");
      return true;
    } catch (error) {
      MGModal.totalError(error);
      return Future.error(error);
    }
  }
}
